#pragma once

#include <unistd.h>

namespace android {

class McuRPCBuffer {
    public:
        McuRPCBuffer(int capacity) {
            mCapacity = capacity;
            mBuf = new int8_t(mCapacity);
        }

        ~McuRPCBuffer() {
            delete mBuf;
            mBuf = NULL;
            mCapacity = 0;
        }

        int getCapacity() { return mCapacity; }
        int getSize() { return mSize; }
        void setSize(int size) { mSize = size; }
        int8_t* Data() { return mBuf; }

    private:
        int8_t *mBuf;
        int mCapacity;
        int mSize;

};
} //namespace
